<?
        if (!isset($page)) $page="home";
?><html>

<head>
<link rel="stylesheet" href="/static/<?=$openidoo_domain?>/style.css" type="text/css" />
</head>

<body>

<div id="global">

<div id="top">
<div id="topleft"><a href="/"><img src="/static/<?=$openidoo_domain?>/logo.png"></a></div>
<div id="topright">
        <div class="title">Welcome to the OpeniDOO OpenID page</div>
        OpenID is a way for individuals to create identity online and use it anywhere that OpenID is supported.
</div>
</div>

<div id="middle">
<?php

if (isset($_SESSION['user_id'])) {
	?>
<div class="links">
		<a <?if($page=="home")echo 'class="selected"'?> href="/">Home</a> |
		<a <?if($page=="personas")echo 'class="selected"'?>href="/personas.php">Identities</a> |
		<a <?if($page=="sites")echo 'class="selected"'?>href="/sites.php">Sites</a> |
		<a <?if($page=="logs")echo 'class="selected"'?>href="/logs.php">Logs</a> |
		<a <?if($page=="account")echo 'class="selected"'?>href="/account.php">Account Settings</a> |
		<a href="/signout.php">Sign Out</a>
</div>
	<?
} else {
	?>
<div class="links">
		<a <?if($page=="home")echo 'class="selected"'?> href="/">Home</a> |
		<a <?if($page=="signup")echo 'class="selected"'?> href="/signup.php">Sign Up</a> |
		<a <?if($page=="signin")echo 'class="selected"'?> href="/signin.php">Sign In</a> |
		<a <?if($page=="password")echo 'class="selected"'?>href="/password.php">Recover Account</a>
</div>
	<?
}

?>
</div>

<div id="content">

<div id="main">
